import { IPSDEFVRCondition } from './ipsdefvrcondition';
import { PSModelObjectImpl } from '../../../psmodel-object-impl';

export class PSDEFVRConditionImpl extends PSModelObjectImpl implements IPSDEFVRCondition {
  get codeName(): string {
    return this.M.codeName;
  }

  get condTag(): string {
    return this.M.condTag;
  }

  get condTag2(): string {
    return this.M.condTag2;
  }

  get condType(): 'GROUP' | 'NULLRULE' | 'VALUERANGE' | 'VALUERANGE2' | 'REGEX' | 'STRINGLENGTH' | 'SIMPLE' | 'VALUERANGE3' | 'QUERYCOUNT' | 'VALUERECURSION' | 'SYSVALUERULE' {
    return this.M.condType;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get ruleInfo(): string {
    return this.M.ruleInfo;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get keyCond(): boolean {
    return this.M.keyCond != null ? this.M.keyCond : false;
  }

  get notMode(): boolean {
    return this.M.notMode != null ? this.M.notMode : false;
  }

  get tryMode(): boolean {
    return this.M.tryMode;
  }

  get cls(): string {
    return 'PSDEFVRConditionImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'dataentity.defield.valuerule.IPSDEFVRCondition') return true;
    return super.instanceof(cls);
  }
}
